<form class="layui-form" lay-filter="tpl_supplier{$staff_id}" action="{:url('supplier/saveData')}">
	<input type="hidden" name="staff_id" class="layui-input" />
	<input type="hidden" name="site_id" value="117" />
	<input type="hidden" name="department_id" value="-1" />
	<input type="hidden" name="position" value="1" />
	<input type="hidden" name="is_supplier" value="1" />
	<div class="layui-form-item">
		<label class="layui-form-label">供应商名称</label>
		<div class="layui-input-inline">
			<input type="text" name="supplier_name" lay-verify="required" placeholder="请输入供应商名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">合同名称</label>
		<div class="layui-input-inline">
			<input type="text" name="company_name" lay-verify="required" placeholder="请输入合同名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">供应商分级</label>
		<div class="layui-input-inline">
			<select name="supplier_grade">
				<option value="1">一级系统</option>
				<option value="2">二级系统</option>
			</select>
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">供应商类型</label>
		<div class="layui-input-inline">
			<select name="supplier_type">
				<option value="A型">A型</option>
				<option value="B型">B型</option>
				<option value="C型">C型</option>
				<option value="D型">D型</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">来源</label>
		<div class="layui-input-inline">
			<select name="laiyuan">
				<option value="1">一级帐号</option>
				<option value="2">内部帐号</option>
				<option value="3">优士</option>
				<option value="4">卓品</option>
				<option value="5">多米</option>
				<option value="6">东晟</option>
				<option value="7">自营</option>
				<option value="8">君长</option>
				<option value="9">华舰</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">所属管理员</label>
		<div class="layui-input-inline" style="width: 80%;">
			{volist name="get_staff" id="list"}
			{if condition="in_array($list['member_id'],$be_staff_id)"}
			<input type="checkbox" name="be_staff_id[]" checked id="be_staff_id_{$list.member_id}" value="{$list.member_id}" title="{$list.username}"> 
			{else /}
			<input type="checkbox" name="be_staff_id[]" id="be_staff_id_{$list.member_id}" value="{$list.member_id}" title="{$list.username}"> 
			{/if}
			{/volist}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">登录账号</label>
		<div class="layui-input-inline">
			<input type="text" name="username" lay-verify="required" placeholder="请输入登录账号" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">初始登录密码</label>
		<div class="layui-input-inline">
			<input type="password" name="password" placeholder="请输入初始登录密码" autocomplete="off" class="layui-input">
			{if condition="$staff_id NEQ ''"}
			<div class="layui-form-mid layui-word-aux">不填写则不修改密码</div>
			{/if}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">联系人</label>
		<div class="layui-input-inline">
			<input type="text" name="realname" lay-verify="required" placeholder="请输入联系人" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">接收短信电话</label>
		<div class="layui-input-inline">
			<input type="text" name="phone" placeholder="请输入接收短信电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">默认折扣率（%）</label>
		<div class="layui-input-inline">
			<select name="supplier_rate" lay-verify="required">
				<option value="95">95%</option>
				<option value="96" selected>96%</option>
				<option value="97">97%</option>
			</select>
			<!-- <input type="number" name="supplier_rate" lay-verify="required" placeholder="请输入默认折扣率" autocomplete="off" class="layui-input"> -->
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">微信群名</label>
		<div class="layui-input-inline">
			<input type="text" name="wxgroup_name" placeholder="请输入微信群名" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">签约代表</label>
		<div class="layui-input-inline">
			<input type="text" name="daibiao" placeholder="请输入签约代表" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">联系电话</label>
		<div class="layui-input-inline">
			<input type="text" name="dianhua" placeholder="请输入联系电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">开户银行</label>
		<div class="layui-input-inline">
			<input type="text" name="yinhang" placeholder="请输入开户银行" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">银行账号</label>
		<div class="layui-input-inline">
			<input type="text" name="zhanghao" placeholder="请输入银行账号" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">税号</label>
		<div class="layui-input-inline">
			<input type="text" name="trade_no" placeholder="请输入税号" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">单位地址</label>
		<div class="layui-input-inline">
			<input type="text" name="danweidizhi" placeholder="请输入单位地址" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">业务员</label>
		<div class="layui-input-inline">
			<input type="text" name="yewuyuan" lay-verify="required" placeholder="请输入业务员" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">业务员电话</label>
		<div class="layui-input-inline">
			<input type="text" name="yewuyuandh" lay-verify="required" placeholder="请输入业务员电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">助理</label>
		<div class="layui-input-inline">
			<input type="text" name="zhuli" lay-verify="required" placeholder="请输入助理" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">内勤</label>
		<div class="layui-input-inline">
			<input type="text" name="neiqin" placeholder="请输入内勤" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display:none;">
		<label class="layui-form-label">处理人</label>
		<div class="layui-input-inline">
			<input type="text" name="chuliren" placeholder="请输入处理人" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">订单联系人</label>
		<div class="layui-input-inline">
			<input type="text" name="order_member" placeholder="请输入订单联系电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">订单联系电话</label>
		<div class="layui-input-inline">
			<input type="text" name="order_phone" placeholder="请输入订单联系电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">物流联系人</label>
		<div class="layui-input-inline">
			<input type="text" name="delivery_member" placeholder="请输入物流联系人" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">物流联系人电话</label>
		<div class="layui-input-inline">
			<input type="text" name="delivery_phone" placeholder="请输入物流联系人电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">上传公章</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list-supplier{$staff_id}">
		
				</div>
				<div class="layui-upload-drag article_pictures_upload" id="supplier_pictures_upload{$staff_id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">
		
				</div>
			</blockquote>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">部门来源</label>
		<div class="layui-input-inline">
			<input type="text" name="bumenlaiyuan" placeholder="请输入部门来源" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">合作状态</label>
		<div class="layui-input-inline">
			<input type="text" name="hezuozhuangtai" placeholder="请输入合作状态" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">合同开始时间</label>
		<div class="layui-input-inline">
			<input type="text" name="contract_start" placeholder="请选择合同开始时间" id="contract_start" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">合同结束时间</label>
		<div class="layui-input-inline">
			<input type="text" name="contract_end" placeholder="请选择合同结束时间" id="contract_end" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">任务量(万)</label>
		<div class="layui-input-inline">
			<input type="text" name="renwu" placeholder="请输入任务量" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">合同附件</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<input type="hidden" id="contract_file" name="contract_file"/>
				<div class="layui-upload-list layui-upload-list-contract item_container" id="layui-upload-list{$staff_id}">
					
				</div>
				<button type="button" class="layui-btn" id="contract_file{$staff_id}">
				  <i class="layui-icon">&#xe67c;</i>上传附件
				</button>
				<div style="clear: both;">
	
				</div>
			</blockquote>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_supplier">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var supplier_form_value = {$data};
	supplier_form_value.department_id = -1;
	var get_city_department = "{:url('supplier/getCityDepartment')}";
	var get_site_list_url = "{:url('site/ajaxSite')}";
	var upload_rename_uri = "{:url('Upload/uploadOne')}";
</script>
<script src="/static/js/supplier/supplier_tpl.js?time=10001" type="text/javascript" charset="utf-8"></script>
<style>
	.invoice-link {
		background: #2F4056;
		padding: 4px 10px;
		border-radius: 3px;
		font-style: italic;
		vertical-align: middle;
	}
</style>